/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package twitch_game;


// Imports
import java.io.IOException;
import java.awt.AWTException;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.jibble.pircbot.*;


/**
 *
 * @author kgills
 */
public class Twitch_game{

    /**
     * @param args the command line arguments
     * @throws java.awt.AWTException
     */
    
            //Start the Robot
       
    public static void main(String[] args) throws AWTException{
        
        // Join the IRC channel
        try {
            // Create the IRC bot, parameter is the nickname
            MyBot bot = new MyBot("kgills");
            
            
            //Have to forward the port, doesn't work on the internal network
            String host = "irc.twitch.tv";
            int port = 6667;
            //String pw = "kevin183";
            String pw = "oauth:8rswgfsnctrbvr3k1jnscj768ksqhnt";
            String channel = "#twitchplayspokemon";
            
            bot.connect (host,port,pw);
            bot.joinChannel(channel);
           
        } catch (IOException | IrcException ex) {
            Logger.getLogger(Twitch_game.class.getName()).log(Level.SEVERE, null, ex);
        }
        
        //TODO Need to do something for the graphics
        
    }
}
